angular.module('faApp').service('MessageService', [ 'ajaxService',function (ajaxService) {

  this.messageList = function (cfg) {
    return ajaxService.jsonp(ajaxService.getApiUri("MESSAGE_MANAGER_LIST"),cfg || {});
  };

  this.messageEdit = function (message) {
    return ajaxService.jsonp(ajaxService.getApiUri("MESSAGE_MANAGER_EDIT"),message || {});
  };
}]);